import request from '@/utils/request'
//查询
export const landparcelinfoGetService = () => {
  return request.get('adminlandparcel/search')
}
//添加用户信息
export const landparcelinfoAddService = ({
  id,
  area,
  status,
  type,
  ph,
  nutrient,
  irrigationfacility,
  light,
  landresourceid,
  order,
  name
}) => {
  return request.post('adminlandparcel/add', {
    id,
    area,
    status,
    type,
    ph,
    nutrient,
    irrigationfacility,
    light,
    landresourceid,
    order,
    name
  })
}
//更新
export const landparcelinfoUpService = ({
  id,
  area,
  status,
  type,
  ph,
  nutrient,
  irrigationfacility,
  light,
  landresourceid,
  order,
  name
}) => {
  return request.put('adminlandparcel/up', {
    id,
    area,
    status,
    type,
    ph,
    nutrient,
    irrigationfacility,
    light,
    landresourceid,
    order,
    name
  })
}
//删除
export const landparcelplotinfoDlService = (id) => {
  return request.delete('adminlandparcel/delete', {
    params: { id }
  })
}
